#pragma once
#include "CAction.h"
#include "stdafx.h"
#include "CEnemy.h"
#include "CObjectManager.h"

class CActionQueue
{
public:

	CActionQueue(CObjectManager* om);
	CActionQueue(int i);

	~CActionQueue();
	
	void reStart();
	void nextStage();
	void selectStage(int i);

	void Update(int& nowFps, list<CEnemy* >& enemy);
protected:
private:
	CObjectManager* objectManager;
	vector<CAction*> actionQueue;
	ifstream infile;
	string tempStr; 
	int nowSelected;
	int nowPlayStage;
	void makeUnit(CAction* value, list<CEnemy* > &enemy);
	void readAction();
	void writeToQueue();
	void clear();
};